package com.turing.common.exception;

public class IntervalCoincidenceException extends Exception {
    private String message;

    private String code;

    public IntervalCoincidenceException() {
        this.code = "202";
        this.message = "金额区间不能重合,请重新输入金额区间";
    }

    public IntervalCoincidenceException(String message, String code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
